<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="ja" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta http-equiv="Content-Style-Type" content="text/css">
<!-- meta -->
<meta name="keywords" content="">
<meta name="description" content="">
<!-- /meta -->
<c:if test="${actionType == 'DEL'}" >
	<title>${gamenName}データ削除 - 確認</title>
</c:if>
<c:if test="${actionType == 'ADD' || actionType == 'MOD'}" >
	<title>${gamenName}データ登録/編集 - 確認</title>
</c:if>
<link rel="stylesheet" type="text/css" href="<%= request.getContextPath() %>/common/css/base.css">
<link rel="stylesheet" type="text/css" href="<%= request.getContextPath() %>/common/css/headerfooter.css">
<link rel="stylesheet" type="text/css" href="<%= request.getContextPath() %>/common/css/ulol.css">
<link rel="stylesheet" type="text/css" href="<%= request.getContextPath() %>/common/css/arrow.css">
<link rel="stylesheet" type="text/css" href="<%= request.getContextPath() %>/common/css/elements.css">
<!-- admin -->
<link rel="stylesheet" type="text/css" href="<%= request.getContextPath() %>/common/css/base_admin.css">
<link rel="stylesheet" type="text/css" href="<%= request.getContextPath() %>/common/css/elements_admin.css">
<!-- /admin -->
<script type="text/javascript" src="<%= request.getContextPath() %>/common/js/library.js"></script>
<link rel="stylesheet" type="text/css" href="<%= request.getContextPath() %>/common/css/for_winie3.css">
<script type="text/javascript" src="<%= request.getContextPath() %>/common/js/YahhoCal.js"></script>
<script type="text/javascript" src="<%= request.getContextPath() %>/common/js/GCalHolidays.js"></script>
<SCRIPT type="text/javascript">

	function back(){
		confirmForm.action ='<%= request.getContextPath() %>/outputdata/modoru';
		confirmForm.submit();
	}
</SCRIPT>
</head>
<body id="dch" >
<!-- === headerArea === -->
<div id="headerArea">
<a name="pageTop" id="pageTop"></a>
<jsp:include page="/common/include/header.jsp" />
</div><!-- === /headerArea === -->
<!-- === mainArea === -->
<div id="mainArea">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
	<tr valign="top">
		<td width="140" id="leftArea">
			<jsp:include page="output_menu.jsp" />
			<!-- /listA01 -->
		</td>
		<td width="20"><img src="<%= request.getContextPath() %>/common/images/spacer.gif" width="20" height="4" border="0" alt=""></td>
		<td id="contentsArea">
		<!-- === contentsArea === -->
			<!-- headingLv01Block -->
			<div class="headingLv01Block">
				<c:if test="${actionType == 'DEL'}" >
					<h1>${gamenName}削除 - 確認</h1>
				</c:if>
				<c:if test="${actionType == 'ADD' || actionType == 'MOD'}" >
					<h1>${gamenName}登録/編集 - 確認</h1>
				</c:if>
			</div>
			<!-- /headingLv01Block -->
			<!-- columnB01 -->
			<div class="columnB01">
			 <s:fielderror/>
			 <s:actionerror/>
			 <s:actionmessage/>
			</div>
			<!-- /columnB01 -->
			<!-- headingLv02 -->
			<div class="headingLv02">
			<table border="0" cellspacing="0" cellpadding="5" width="558">
				<tr>
					<td><p><em>ヘッダー</em></p></td>
				</tr>
			</table>
			</div>
			<!-- /headingLv02 -->
			<form action="<%= request.getContextPath() %>/outputdata/execute" method="post" id="confirmForm" name="confirmForm">

			<s:hidden name="actionType"/>
			<s:hidden name="sort"/>

		    <!-- ヘッダ情報 -->
		    <s:hidden name="data.sort"/>
		    <s:hidden name="data.id"/>
		    <s:hidden name="data.schemaId"/>
			<s:hidden name="data.createUser"/>
			<s:hidden name="data.createDate"/>
			<s:hidden name="data.modifyUser"/>
			<s:hidden name="data.modifyDate"/>
			<s:token/>
			<!-- tableBlock -->
			<div class="tableBlock">
				<!-- tableA01 -->
				<div class="tableA01">
				<table border="1" cellspacing="0" cellpadding="5" width="558">
					<tr>
						<!-- ラベル -->
						<th class="lv01B" width="170"><label for="name">データ名称</label></th>
						<!-- エラー -->
						<th width="11" class="error">&nbsp;</th>
						<!-- 内容 -->
						<td>
							<s:property value="%{data.name}"/>
							<s:hidden name="data.name" />
						</td>
					</tr>
					<c:if test="${sort != '001'}">
					<tr>
						<!-- ラベル -->
						<th class="lv01B" width="170"><label for="fServiceName">${gamenOyaName}</label></th>
						<!-- エラー -->
						<th width="11" class="error">&nbsp;</th>
						<!-- 内容 -->
						<td>
				    		<c:if test="${data.oyaId != null and data.oyaId != '0'}">
				    			<div id="upperRank">
				    			<table id="linkTable" width="100%">
			    					<tr>
					    				<td  width="80%">
					    					<s:property value="%{data.oyaName}"/>
					    					<s:hidden name="data.oyaId" />
					    					<s:hidden name="data.oyaName" />
			    					</tr>
				    			</table>
				    			</div>
				    		</c:if>
						</td>
					</tr>
					</c:if>
					<tr>
						<!-- ラベル --><th class="lv01B" width="170"><label for="createUser">登録者</label></th>
						<!-- エラー --><th width="11" class="error">&nbsp;</th>
						<!-- 内容 --><td><s:property value="%{data.createUser}" /></td>
					</tr>
					<tr>
						<!-- ラベル --><th class="lv01B" width="170"><label for="createDate">登録日付</label></th>
						<!-- エラー --><th width="11" class="error">&nbsp;</th>
						<!-- 内容 --><td><s:property value="%{data.createDate}" /></td>
					</tr>
					<tr>
						<!-- ラベル --><th class="lv01B" width="170"><label for="modifyUser">最終更新者</label></th>
						<!-- エラー --><th width="11" class="error">&nbsp;</th>
						<!-- 内容 --><td><s:property value="%{data.modifyUser}" /></td>
					</tr>
					<tr>
						<!-- ラベル --><th class="lv01B" width="170"><label for="modifyDate">最終更新日付</label></th>
						<!-- エラー --><th width="11" class="error">&nbsp;</th>
						<!-- 内容 --><td><s:property value="%{data.modifyDate}" /></td>
					</tr>
				</table>
				</div>
				<!-- /tableA01 -->
			</div>
			<!-- /tableBlock -->
			<c:if test="${sort == '007'}">
			<!-- /tableBlock -->
			<div class="headingLv02">
				<table border="0" cellspacing="0" cellpadding="5" width="558">
					<tr>
						<td><p><em>画像・動画情報</em></p></td>
					</tr>
				</table>
			</div>
			<!-- tableA01 -->
			<div class="tableA01">
				<!-- tableA01 -->
					<div class="tableA01">
					<table border="1" cellspacing="0" cellpadding="5" width="558" id="fileTbl">

						<s:iterator value="dataFileList" status="sta">
						<tr>
							<th class="lv01B" width="10"><label for="fItemImg03">${sta.index+1}</label></th>
							<td width="100"><s:property value="fileName"/></td>
							<td >
								<table border="0" cellspacing="0" cellpadding="0" class="layoutTable">
									<tr>
										<td>
											<img src="<s:property value="%{getText('uploadFolderLink')}"/><s:property value="thumnail"/>"
											width="120" height="120" border="0" alt="" onclick="preview('<s:property value="realFileName"/>','<s:property value="contentType"/>','<s:property value="fileName"/>','<s:property value="fileDesc"/>')">&nbsp;&nbsp;
										</td>
									</tr>
								</table>
							</td>
							<td  width="200">
								<s:property value="%{dataFileList[#sta.index].fileDesc}"/>
								<s:hidden name="dataFileList[%{#sta.index}].realFileName"/>
								<s:hidden name="dataFileList[%{#sta.index}].uploadFileName"/>
								<s:hidden name="dataFileList[%{#sta.index}].fileName" />
								<s:hidden name="dataFileList[%{#sta.index}].thumnail"/>
								<s:hidden name="dataFileList[%{#sta.index}].contentType"/>

							</td>
						</tr>
					</s:iterator>
					</table>
					</div>
					<!-- /tableA01 -->
			</div>
			</c:if>
			<!-- headingLv02 -->
			<div class="headingLv02">
			<table border="0" cellspacing="0" cellpadding="5" width="558">
				<tr>
					<td><p><em>メタデータ</em></p></td>
				</tr>
			</table>
			</div>
			<!-- /headingLv02 -->

			<div class="tableBlock">
				<!-- tableA01 -->
				<div class="tableA01">
					<table border="1" cellspacing="0" cellpadding="5" id="metaTbl" >
						<tr>
							<th class="lv01B" colspan="3">項目</th>
							<th class="lv01B">データ内容</th>
						</tr>
						<s:iterator value="define.list" status="stat">
						<tr>
							<!-- Fieldキー宣言 -->
							<s:set name= "fieldKey" value="%{define.list[#stat.index].key}"/>
							<s:set name="dataSchemaDetail" value="%{getDataSchemaDetailByFieldKey(#fieldKey)}"/>

							<!-- データ情報 -->
							<s:hidden name= "dataDetailList[%{#stat.index}].fieldKey" value="%{#fieldKey}"/>
							<s:iterator value="itemList" status="itemStat">
								<th class="lv01B" rowspan="${rowspan}" colspan="${colspan}"><s:property value="value" /></th>
							</s:iterator>
							<td>
								<s:iterator value="dataDetailList[#stat.index].data" status="dataStat">
									<s:hidden name= "dataDetailList[%{#stat.index}].data" value = "%{dataDetailList[#stat.index].data[#dataStat.index]}" />
								</s:iterator>
								<s:hidden name="dataDetailList[%{#stat.index}].otherdata"/>
								<!-- TMデータの場合  -->
								<s:if test='%{#dataSchemaDetail.tmSign == "true"}'>
									<s:iterator value="dataDetailList[#stat.index].dataName" status="dataStat">
											<s:hidden name= "dataDetailList[%{#stat.index}].dataName" value="%{dataDetailList[#stat.index].dataName[#dataStat.index]}" />
											<span class="tmData"><s:property value="%{dataDetailList[#stat.index].dataName[#dataStat.index]}" /></span>
											<br/>
									</s:iterator>
								</s:if>
								<s:else>
									<!-- 入力タイプ テキスト -->
									<s:if test='%{#dataSchemaDetail.inputType == "0" or
												 #dataSchemaDetail.inputType == "1" or
												 #dataSchemaDetail.inputType == "5"}'>
										<s:property value="%{dataDetailList[#stat.index].data}"/>
									</s:if>
									<s:elseif test='%{#dataSchemaDetail.inputType == "2" or
													#dataSchemaDetail.inputType == "3" or
													#dataSchemaDetail.inputType == "4"}'>

										<s:property value="%{convertName(#fieldKey, dataDetailList[#stat.index].data,dataDetailList[#stat.index].otherdata)}"/>
									</s:elseif>
									<s:elseif test='%{#dataSchemaDetail.inputType == "6"}'>
										<s:property value="%{convertMultiText(dataDetailList[#stat.index].data)}" />
									</s:elseif>
									<s:elseif test='%{#dataSchemaDetail.inputType == "7"}'>
										{<s:property value="%{#dataSchemaDetail.fieldDisplayname}" />}
									</s:elseif>
								</s:else>


							</td>
						</tr>
						</s:iterator>
					</table>
					</div>
				<!-- /tableA01 -->
			</div>
			<s:if test='customItemList.size != 0'>
			<div class="tableBlock">
				<!-- tableA01 -->
				<div class="tableA01">
				<table border="1" cellspacing="0" cellpadding="5" id="customTagTbl">
					<tr>
						<th class="lv01B">項目</th>
						<th class="lv01B">内容</th>
					</tr>
					<s:iterator value="customItemList" status="customItemStat">
					<s:set name= "fieldKey" value="%{customItemList[#customItemStat.index].fieldKey}"/>
					<s:set name="customDataSchemaDetail" value="%{getDataSchemaDetailByFieldKey(#fieldKey)}"/>
					<tr>
						<td>
							<c:out value="${fieldItemName}" />
						</td>
						<td>
							<s:hidden name= "customDataDetailList[%{#customItemStat.index}].fieldKey" value="%{#fieldKey}"/>

							<s:iterator value="customDataDetailList[#customItemStat.index].data" status="dataStat">
								<s:hidden name= "customDataDetailList[%{#customItemStat.index}].data" value = "%{customDataDetailList[#customItemStat.index].data[#dataStat.index]}" />
							</s:iterator>
							<s:hidden name="customDataDetailList[%{#customItemStat.index}].otherdata"/>
							<!-- TMデータの場合  -->
							<s:if test='%{#customDataSchemaDetail.tmSign == "true"}'>
								<s:iterator value="customDataDetailList[#customItemStat.index].dataName" status="dataStat">
										<s:hidden name= "customDataDetailList[%{#customItemStat.index}].dataName" value = "%{customDataDetailList[#customItemStat.index].dataName[#dataStat.index]}" />
										<span class="tmData"><s:property value="%{customDataDetailList[#customItemStat.index].dataName[#dataStat.index]}" /></span>
										<br/>
								</s:iterator>
							</s:if>
							<s:else>
								<!-- 入力タイプ テキスト -->
								<s:if test='%{#customDataSchemaDetail.inputType == "0" or
											 #customDataSchemaDetail.inputType == "1" or
											 #customDataSchemaDetail.inputType == "5"}'>
									<s:property value="%{customDataDetailList[#customItemStat.index].data}"/>
								</s:if>
								<s:elseif test='%{#customDataSchemaDetail.inputType == "2" or
												#customDataSchemaDetail.inputType == "3" or
												#customDataSchemaDetail.inputType == "4"}'>

									<s:property value="%{convertName(#fieldKey, customDataDetailList[#customItemStat.index].data,customDataDetailList[#customItemStat.index].otherdata)}"/>
								</s:elseif>
								<s:elseif test='%{#customDataSchemaDetail.inputType == "6"}'>
										<s:property value="%{convertMultiText(customDataDetailList[#customItemStat.index].data)}" />
									</s:elseif>
								<s:elseif test='%{#customDataSchemaDetail.inputType == "7"}'>
										{<s:property value="%{#customDataSchemaDetail.fieldDisplayname}" />}
									</s:elseif>
							</s:else>

						</td>
					</tr>

					</s:iterator>
				</table>
				</div>
			</div>
			</s:if>
			<!-- pageNaviC01 -->
			<div class="pageNaviC01">
			<table border="0" cellspacing="0" cellpadding="10" width="558">
				<tr>
					<c:if test="${actionType == 'DEL'}" >
						<td width="298" class="left"><p><input type="button" value="戻る" style="width:100px" onclick="location.href='<%= request.getContextPath() %>/output/modoru'"></p></td>
					</c:if>
					<c:if test="${actionType == 'ADD' || actionType == 'MOD'}" >
						<td width="298" class="left"><p><input type="button" value="戻る" style="width:100px" onclick="back()"></p></td>
					</c:if>
					<td width="130" class="left">&nbsp;</td>
					<c:if test="${actionType == 'DEL'}" >
						<td width="130" class="right"><p><input type="submit" value="削除する" style="width:130px" ></p></td>
					</c:if>
					<c:if test="${actionType == 'ADD' || actionType == 'MOD'}" >
						<td width="130" class="right"><p><input type="submit" value="登録する" style="width:130px" ></p></td>
					</c:if>
				</tr>
			</table>
			</div>
			<!-- /pageNaviC01 -->
			</form>
		<!-- === /contentsArea === -->
		</td>
		<td width="16"><img src="<%= request.getContextPath() %>/common/images/spacer.gif" width="16" height="4" border="0" alt=""></td>
	</tr>
</table>
</div><!-- === /mainArea === -->
<!-- === footerArea === -->
<div id="footerArea">
<jsp:include page="/common/include/footer.jsp" />
</div><!-- === /footerArea === -->
</body>
</html>
<!-- System Architect is COOBA Corp
	Copyright 2010 COOBA Corp All rights reserved -->